
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>班级信息添加</title>
  <link rel="stylesheet" th:href="@{/css/plugins/layui/css/layui.css}">
</head>
<body>


    <div >


        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">班级名称</label>
                <div class="layui-input-inline layui-input-wrap">
                    <input type="text" id="className" name="className"  autocomplete="off" lay-verify="required"  lay-affix="clear" class="layui-input ">
                </div>

            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">所属年级</label>
                <div class="layui-input-inline layui-input-wrap">
                    <select name="gradeId" id="gradeId" th:with="grades=${@gradeService.list()}">
                        <option value="">请选择</option>
                        <option th:each="grade:${grades}" th:value="${grade.gradeId}" th:text="${grade.gradeName}"></option>
                    </select>

                </div>
            </div>
        </div>

    </div>
<script th:src="@{/js/jquery.min.js}"></script>
    <script th:src="@{/js/plugins/layui/layui.js}"></script>
    <script>
        // 异步请求加载部门列表
        layui.use(function (){
            var laydate = layui.laydate;
            laydate.render({
                elem: '#birthday',
                type: 'date'
            });
        })

    </script>
</body>
</html>
